#include "slurp.hh"
#include <fstream>
#include <sstream>

namespace ngintoy
{
    namespace utils
    {
        std::string slurp(std::string const& path)
        {
            std::ifstream in{path};
            std::ostringstream ss;
            ss << in.rdbuf();
            return ss.str();
        }
    }
}

